import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

// 查询重点人员列表
export function queryByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-key-personnel/queryByCondition`,
    method: 'get',
    params: data
  })
}

// id查询重点人员
export function queryById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-key-personnel/queryById/${data.id}`,
    method: 'get',
    params: data
  })
}

// id查询重点人员
export function deleteById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-key-personnel/deleteById/${data.id}`,
    method: 'get',
    params: data
  })
}

// 新增重点人员
export function add (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-key-personnel/add`,
    method: 'post',
    data
  })
}

// 编辑重点人员
export function edit (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-key-personnel/edit`,
    method: 'post',
    data
  })
}

// 查询党员列表
export function queryPersonList (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/party-member-info-mgmt/queryList`,
    method: 'get',
    params: data
  })
}
